<?php
class IndexAction extends Action {
	private  $layout = array();
	public function index(){
		$page = $_GET['page'];
		$channel = $_GET['channel'];
		$databaseData = D('Page')->getPageInfo($page,$channel);
		$parseTag = service ( 'ParseTag' );
		$this->setTitle($databaseData['title']." - ".$databaseData['pageName']);
		$this->assign('tempData',$databaseData['layoutData']);
		$this->assign('layoutData',unserialize($databaseData['widgetData']));
		$pageData = $parseTag->parseId ( $databaseData['layoutData']);
		$this->assign('data',$pageData);
		$this->assign('page',$page);
		$this->assign('channel',$channel);
		$this->display($databaseData['html']);
	}
}
?>